package day5;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class GetAvg {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        double sum=0;
        for(int i=1;i<=5;i++){
            System.out.print("请输入第"+i+"门课的成绩：");
            sum=sum+in.nextDouble();
        }
        double avg=sum/5;
        System.out.println("均分是："+avg);
    }
}
